{% extends "master.html" %}
{% block subtitle %} - 基础信息 - 货币管理{% endblock %}

{% block extJS %}
<script language="JavaScript" type="text/javascript">
//<![CDATA[
    function toSbumit(){
        $("#dataForm").submit();
        
    }
//]]>
</script>
{% endblock %}




{% block main %}
<div class="container">
    <div class="row">
        <ul class="breadcrumb">
          <li><a href="{{url_for('bpMas.view')}}">基础信息</a> <span class="divider">\</span></li>
          <li class="active">货币管理</li>
        </ul>
    </div>
    <div class="row">
        {{mymacros.render_search_form(form,3)}}
    </div>
    <div class="row">    
        <div class="btn-toolbar pull-right">
            <div class="btn-group"><button type="button" class="btn" onclick="$('.searchForm').submit()">{{BTN_SEARCH}}</button></div>
            {% if getAllPermission(['MASTER_CREATE',]) %}
                <div class="btn-group"><a href="{{url_for('.view',action='add')}}" class="btn btn-primary">创建货币</a></div>
            {% endif %}
        </div>
    </div>
    <div class="row">
        <table class="table table-bordered">
            <thead>
                <tr>
                    <td>系统编号</td>
                    <td>货币代码</td>
                    <td>货币名称</td>
                    <td>默认货币</td>
                    <td>人民币&nbsp;:&nbsp;本货币</td>
                    <td>经办人</td>
                    <td>更新时间</td>
                </tr>
            </thead>
            <tbody>
                {% for r in result %}
                    <tr>
                        <td><a href="{{url_for('.view',action='view',id=r.id)}}">{{r.no}}</a></td>
                        <td>{{r.code|f}}</td>
                        <td>{{r.name|f}}</td>
                        <td>
                            {% if r.isDefault == 1 %}
                                是
                            {% endif %}    
                        </td>
                        <td>1&nbsp;:&nbsp;{{r.ratio|f}}</td>
                        <td>{{r.updateBy|f}}</td>
                        <td>{{r.updateTime|ft}}</td>
                    </tr>
                {% endfor %}
            <tbody>
        </table>
    </div>
</div>
{% endblock %}